home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / tool-inc.zip / LTOR.INC < prev    next >
Text File  |  1989-06-02  |  718b  |  35 lines

  1.  
  2. (*
  3.  * Copyright 1987, 1989 Samuel H. Smith;  All rights reserved
  4.  *
  5.  * This is a component of the ProDoor System.
  6.  * Do not distribute modified versions without my permission.
  7.  * Do not remove or alter this notice or any other copyright notice.
  8.  * If you use this in your own program you must distribute source code.
  9.  * Do not use any of this in a commercial product.
  10.  *
  11.  *)
  12.  
  13. (*
  14.  * ltor - long integer to real conversion, s.h.smith, 24-jul-87 (12-01-88)
  15.  *
  16.  *)
  17.  
  18. function ltor(long: long_int): real;
  19. var
  20.    l: longint absolute long;
  21. begin
  22.    ltor := l;
  23. end;
  24.  
  25.  
  26. procedure rtol(r: real;
  27.                var long: long_int);
  28. var
  29.    l: longint absolute long;
  30. begin
  31.    l := trunc(r);
  32. end;
  33.  
  34.  
  35.